package com.syyo.gulimall.product.feign.fallback;

import com.syyo.common.domain.ResultVo;
import com.syyo.common.utils.ResultUtils;
import com.syyo.gulimall.product.feign.SeckillFeign;
import org.springframework.stereotype.Component;

/**
 * @author: wang
 * @date: 2021/5/24 15:59
 * @Description:
 */
@Component
public class SeckillFeignFallback implements SeckillFeign {

    @Override
    public ResultVo getSkuSeckillInfo(Long skuId) {
        System.out.println("======熔断方法调用===========");
        return ResultUtils.error(9999, "操作频繁，请稍后重试!");
    }
}
